<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBannerTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('banner', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->increments('id');
            $table->string('img', 255)->null()->default('')->comment('资讯图片');
            $table->tinyInteger('display')->null()->default('0')->comment('是否显示 1显示 2不显示');
            $table->integer('order')->null()->default('0')->comment('排序');
            $table->string('type',20)->null()->default('')->comment('轮播图类型');

        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('banner');
    }
}
